import request from '@/utils/request'

// 查询软著列表
export function listCopyright(query) {
  return request({
    url: '/edu/copyright/list',
    method: 'get',
    params: query
  })
}

// 查询软著详细
export function getCopyright(copyrightId) {
  return request({
    url: '/edu/copyright/' + copyrightId,
    method: 'get'
  })
}

// 新增软著
export function addCopyright(data) {
  return request({
    url: '/edu/copyright',
    method: 'post',
    data: data
  })
}

// 修改软著
export function updateCopyright(data) {
  return request({
    url: '/edu/copyright',
    method: 'put',
    data: data
  })
}

// 删除软著
export function delCopyright(copyrightId) {
  return request({
    url: '/edu/copyright/' + copyrightId,
    method: 'delete'
  })
}

// 导出软著
export function exportCopyright(query) {
  return request({
    url: '/edu/copyright/export',
    method: 'get',
    params: query
  })
}